<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $pM = M('page'); 
        $pRow = $pM->field('id,description')->where('id = 2')->find();

        $zM = M('zhuanjia');
        $zData = $zM->order('id desc')->limit('6')->select();
        
        $this->assign('pRow' , $pRow);
        $this->assign('zData' , $zData);
        $this->display();
    }
}
